package com.ch.design;

import java.util.ArrayList;

public abstract class CarBuilder {
    public ArrayList<String> sequence = new ArrayList<>();

    //建造一个模型，你要给我一个顺序要求，就是组装顺序
    public CarBuilder setSequence(ArrayList<String> sequence){
        this.sequence = sequence;
        return this;
    }

    //设置完毕顺序后，就可以直接拿到这个车辆模型
    public abstract CarModel build();
}